<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{$Think.lang.logintype}{$Think.lang.logintitle}</title>
    <link rel="stylesheet" href="__ADMIN__/vendor/layui/css/layui.css">
    <link rel="stylesheet" href="__ADMIN__/custom/css/style.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo"><span class="layui-hide-xs">{$Think.lang.logintype}</span>{$Think.lang.logintitle}</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide-xs">
                <a href="javascript:;">
                    <i class="layui-icon" style="font-size: 1.2rem;">&#xe612;</i>
                {$admin}
                </a>
            </li>
             <li class="layui-nav-item">
                <a href="javascript:;">
                    <i class="layui-icon" style="font-size: 1.2rem;">&#xe620;</i>
                    {$Think.lang.English}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" onclick="setlang('zh-cn')" >{:lang('zh-cn')}</a></dd>
                    <dd><a href="javascript:;" onclick="setlang('en-us')">{:lang('en-us')}</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <i class="layui-icon" style="font-size: 1.2rem;">&#xe620;</i>
                    {$Think.lang.setup}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="{:url('config/index')}" target="_content">{$Think.lang.sysset}</a></dd>
                    <dd><a href="{:url('manager/setpass')}" target="_content">{$Think.lang.uppass}</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="{:url('login/logout')}">{$Think.lang.logout}</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
               
                <li class="layui-nav-item">
                    <a href="javascript:;">{$Think.lang.categl}</a>
                    <dl class="layui-nav-child">
                        <dd><a href="{:url('category/index')}" target="_content">{$Think.lang.catelst}</a></dd>
                        <dd><a href="{:url('category/create')}" target="_content">{$Think.lang.cateadd}</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                        <a href="javascript:;">{$Think.lang.artgl}</a>
                        <dl class="layui-nav-child">
                            <dd><a href="{:url('article/index')}" target="_content">{$Think.lang.artalst}</a></dd>
                            <dd><a href="{:url('article/create')}" target="_content">{$Think.lang.artadd}</a></dd>
                        </dl>
                    </li>
                <li class="layui-nav-item">
                        <a href="javascript:;">{$Think.lang.usergl}</a>
                        <dl class="layui-nav-child">
                            <dd><a href="{:url('manager/create')}" target="_content">{$Think.lang.useradd}</a></dd>
                            <dd><a href="{:url('manager/index')}" target="_content">{$Think.lang.userlst}</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">{$Think.lang.bannergl}</a>
                        <dl class="layui-nav-child">
                            <dd><a href="{:url('banner/create')}" target="_content">{$Think.lang.banneradd}</a></dd>
                            <dd><a href="{:url('banner/index')}" target="_content">{$Think.lang.bannerlst}</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item"><a href="{:url('database/index')}" target="_content">{$Think.lang.database}</a></li>
                <li class="layui-nav-item"><a href="{:url('File/index')}" target="_content">{$Think.lang.file}</a></li>
                <li class="layui-nav-item"><a href="{:url('config/index')}" target="_content">{$Think.lang.sysset}</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body" id="layui-body" style="overflow: hidden;">
        <!-- 内容主体区域 -->
        <div class="title ly-right-title"><span class="actived"><i class="layui-icon">&#xe68e;</i> <span id="righttitle">{$Think.lang.infos}</span></span></div>
        <iframe id="_content" name="_content" src="{:url('index/system')}" scrolling="yes" frameborder="no" width="100%" height="100%"></iframe>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        ©{$Think.lang.yuj}
    </div>
</div>
<script src="__ADMIN__/vendor/js/jquery.js"></script>
<script src="__ADMIN__/vendor/layui/layui.js"></script>
<script src="__ADMIN__/custom/js/admin.js"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;
		
    });
    function setlang(lang){
        $.post("{:url('base/setlang/setlang')}",{lang:lang},function(res){
            console.log(res)
            if (res==1) {
                window.location.reload();
            }
        })
    }
</script>
</body>
</html>